﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace SuppKids.Core.Domain
{
    public class Norm : Entity
    {
        [Required]
        public double Value { get; set; }

        [Required]
        public virtual Product Product { get; set; }

        [Required]
        public virtual Group Group { get; set; }

        
        public Norm(Product p, Group g, double v)
        {
            this.Product = p;
            this.Group = g;
            Value = v;
        }

        // ??
        public Norm()
        {
            this.Product = new Product();
            this.Group = new Group();
            Value = 0;
        }    
    }
}